package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.blb.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author tb
 * @since 2020-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 账户
     */
    private String userAccount;

    /**
     * 密码
     */
    private String userPassword;

    /**
     * 用户状态Y(已启用)，N(已停用)
     */
    private String userStatus;

    /**
     * 用户盐值
     */
    private String salt;

    /**
     * 员工表id 外键
     */
    private String staffId;

    /**
     * 公司对象（自定义的）
     */
    @TableField(exist = false)
    private Company company;



}
